{extend name="../../admin/view/main"}

{block name="button"}
{/block}

{block name="content"}
<div class="layui-tab layui-tab-card">
<!--    <ul class="layui-tab-title notselect">-->
<!--        {foreach $total as $k=>$v}{if isset($type) and 't'.$type eq $k}-->
<!--        <li class="layui-this" data-open="{:url('index')}?type={$k}">-->
<!--            {if is_numeric($v.vip)}<span class="color-red margin-right-5">[<b class="margin-col-5 font-s12">VIP{$v.vip}</b>]</span>{/if}-->
<!--            <span>{$v.name}</span><sup class="layui-badge border-radius">{$v.count|default=0}</sup>-->
<!--        </li>-->
<!--        {else}-->
<!--        <li data-open="{:url('index')}?type={$k}">-->
<!--            {if is_numeric($v.vip)}<span class="color-desc margin-right-5">[<b class="margin-col-5 font-s12">VIP{$v.vip}</b>]</span>{/if}-->
<!--            <span>{$v.name}</span><sup class="layui-badge border-radius">{$v.count|default=0}</sup>-->
<!--        </li>-->
<!--        {/if}{/foreach}-->
<!--    </ul>-->
    <div class="layui-tab-content">
        {include file='user/admin/index_search'}
        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th class='nowrap'>用户ID</th>
                <th class='nowrap'>司机姓名</th>
                <th class='nowrap'>手机号码</th>
                <th class='nowrap'>司机车牌</th>
                <th class='nowrap'>创建时间</th>
                <th class='nowrap'></th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
                </td>

                <td class='nowrap'>
                    <div><span class="color-text">{$vo.id|default='-'}</span></div>
                </td>

                <td class="nowrap">
                    <div class="inline-block">
                        <div><span class="color-text">{$vo.username|default='-'}</span></div>

                    </div>
                </td>
                <td class="nowrap">
                    <div><b><span class="color-text">{$vo.phone|default='-'}</span></b></div>
                </td>
                <td class="nowrap">
                    <div><b>{$vo.plate_number}</b></div>
                </td>
                <td class="nowrap">
                    <div><b>{$vo.create_at|format_datetime}</b></div>
                </td>
                <td class="nowrap">

                    <!--{if auth("edit")}-->
<!--                    <a class="layui-btn layui-btn-sm layui-btn-primary" data-open="{:url('edit')}?id={$vo.id}" data-width="900px">编 辑</a>-->
                    <!--{/if}-->

<!--                    <a class="layui-btn layui-btn-xs layui-btn-danger" data-action="{:url('remove')}" data-confirm="确定要删除数据吗?" data-value="id#{$vo.id}">删 除(test)</a>-->

                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
</div>
{/block}